You are here: Trading System Programming > Reference > Classes > Execution > Execution Methods > getOrderId

getOrderId

The getOrderId method returns execution's original order id.

Syntax

var getOrderId();

Return Value

This method returns a string value representing the orderId for the order that was placed for this execution.

Example

The following example demonstrates the use of getOrderId() method.

 

function start()

{

//retrieve account's executions orders

var account = getAccount();

var executions = account.getExecutions();

 

//loop through all executions

for(var i = 0; i < executions.length, i++)

{

var execution = executions[i];

 

//process execution

var orderId = execution.getOrderId();

}

 

//proceed further...

}

 


Copyright © 2006-2009 ActiveTick LLC